home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / ClearlooksClassic / gtk-2.0 / gtkrc
Encoding:
Text File  |  2009-03-17  |  10.3 KB  |  403 lines

  1.  
  2. # Please keep this gtkrc in sync with the other ones from Clearlooks based themes.
  3.  
  4. gtk-color-scheme = "base_color:#ffffff\nfg_color:#000000\ntooltip_fg_color:#000000\nselected_bg_color:#5598d7\nselected_fg_color:#ffffff\ntext_color:#000000\nbg_color:#ede9e3\ntooltip_bg_color:#FFFFBF"
  5.  
  6. style "default" {
  7.     xthickness = 1
  8.     ythickness = 1
  9.  
  10.     #######################
  11.     # Style Properties
  12.     #######################
  13.     GtkButton::child-displacement-x = 1
  14.     GtkButton::child-displacement-y = 1
  15.     GtkButton::default-border = { 0, 0, 0, 0 }
  16.  
  17.     GtkCheckButton::indicator-size = 14
  18.  
  19.     GtkPaned::handle-size = 6
  20.  
  21.     GtkRange::trough-border = 0
  22.     GtkRange::slider-width = 15
  23.     GtkRange::stepper-size = 15
  24.  
  25.     GtkScale::slider-length = 27
  26.     GtkScale::trough-side-details = 1
  27.  
  28.     GtkScrollbar::min-slider-length = 30
  29.     GtkMenuBar::internal-padding = 0
  30.     GtkExpander::expander-size = 16
  31.     GtkTreeView::expander-size = 14
  32.     GtkTreeView::vertical-separator = 0
  33.  
  34.     GtkMenu::horizontal-padding = 0
  35.     GtkMenu::vertical-padding = 0
  36.  
  37.     WnckTasklist::fade-overlay-rect = 0
  38.     # The following line hints to gecko (and possibly other appliations)
  39.     # that the entry should be drawn transparently on the canvas.
  40.     # Without this, gecko will fill in the background of the entry.
  41.     GtkEntry::honors-transparent-bg-hint = 1
  42.     GtkMenuBar::internal-padding = 0
  43.  
  44.     GtkEntry::progress-border = { 2, 2, 2, 2 }
  45.  
  46.     ####################
  47.     # Color Definitions
  48.     ####################
  49.     bg[NORMAL]        = @bg_color
  50.     bg[PRELIGHT]      = shade (1.02, @bg_color)
  51.     bg[SELECTED]      = @selected_bg_color
  52.     bg[INSENSITIVE]   = @bg_color
  53.     bg[ACTIVE]        = shade (0.9, @bg_color)
  54.  
  55.     fg[NORMAL]        = @fg_color
  56.     fg[PRELIGHT]      = @fg_color
  57.     fg[SELECTED]      = @selected_fg_color
  58.     fg[INSENSITIVE]   = darker (@bg_color)
  59.     fg[ACTIVE]        = @fg_color
  60.  
  61.     text[NORMAL]      = @text_color
  62.     text[PRELIGHT]    = @text_color
  63.     text[SELECTED]    = @selected_fg_color
  64.     text[INSENSITIVE] = darker (@bg_color)
  65.     text[ACTIVE]      = @selected_fg_color
  66.  
  67.     base[NORMAL]      = @base_color
  68.     base[PRELIGHT]    = shade (0.95, @bg_color)
  69.     base[SELECTED]    = @selected_bg_color
  70.     base[INSENSITIVE] = @bg_color
  71.     base[ACTIVE]      = shade (0.9, @selected_bg_color)
  72.  
  73.     engine "clearlooks" {
  74.         colorize_scrollbar = FALSE
  75.         reliefstyle = 1
  76.         menubarstyle = 2
  77.         toolbarstyle = 0
  78.         animation = FALSE
  79.         radius = 3.0
  80.         style = CLASSIC
  81.  
  82.         # Set a hint to disable backward compatibility fallbacks.
  83.         hint = "use-hints"
  84.     }
  85. }
  86.  
  87. style "wide" {
  88.     xthickness = 2
  89.     ythickness = 2
  90. }
  91.  
  92. style "wider" {
  93.     xthickness = 3
  94.     ythickness = 3
  95. }
  96.  
  97. style "entry" {
  98.     xthickness = 3
  99.     ythickness = 3
  100.  
  101.     bg[SELECTED] = mix (0.4, @selected_bg_color, @base_color)
  102.     fg[SELECTED] = @text_color
  103.  
  104.     engine "clearlooks" {
  105.         focus_color = shade (0.896, @selected_bg_color)
  106.     }
  107. }
  108.  
  109. style "spinbutton" {
  110.  
  111.     engine "clearlooks" {
  112.         hint = "spinbutton"
  113.     }
  114. }
  115.  
  116. style "scale" = "button" {
  117.     xthickness = 2
  118.     ythickness = 2
  119.  
  120.     engine "clearlooks" {
  121.         hint = "scale"
  122.     }
  123. }
  124.  
  125. style "vscale" {
  126.  
  127.     engine "clearlooks" {
  128.         hint = "vscale"
  129.     }
  130. }
  131.  
  132. style "hscale" {
  133.  
  134.     engine "clearlooks" {
  135.         hint = "hscale"
  136.     }
  137. }
  138.  
  139. style "scrollbar" {
  140.     xthickness = 2
  141.     ythickness = 2
  142.  
  143.     engine "clearlooks" {
  144.         hint = "scrollbar"
  145.     }
  146. }
  147.  
  148. style "hscrollbar" {
  149.  
  150.     engine "clearlooks" {
  151.         hint = "hscrollbar"
  152.     }
  153. }
  154.  
  155. style "vscrollbar" {
  156.  
  157.     engine "clearlooks" {
  158.         hint = "vscrollbar"
  159.     }
  160. }
  161.  
  162. style "notebook_bg" {
  163. }
  164.  
  165. style "button" {
  166.     xthickness = 3
  167.     ythickness = 3
  168.  
  169.     bg[NORMAL]        = shade (1.05, @bg_color)
  170.     bg[INSENSITIVE]   = shade (1.04, @bg_color)
  171.     bg[PRELIGHT]      = shade (1.08, @bg_color)
  172. }
  173.  
  174. style "notebook" {
  175.     xthickness = 2
  176.     ythickness = 2
  177. }
  178.  
  179. style "statusbar" {
  180.  
  181.     engine "clearlooks" {
  182.         hint = "statusbar"
  183.     }
  184. }
  185.  
  186. style "comboboxentry" {
  187.  
  188.     engine "clearlooks" {
  189.         # Note:
  190.         # If you set the appears-as-list option on comboboxes in the theme,
  191.         # then you should set this hint on the combobox instead.
  192.         hint = "comboboxentry"
  193.     }
  194. }
  195.  
  196. style "menubar" {
  197.  
  198.     engine "clearlooks" {
  199.         hint = "menubar"
  200.     }
  201. }
  202.  
  203. style "menu" {
  204.     xthickness = 2
  205.     ythickness = 2
  206.  
  207.     bg[NORMAL]        = shade (1.08, @bg_color)
  208. }
  209.  
  210. style "menu_item" {
  211.     xthickness = 2
  212.     ythickness = 3
  213.  
  214.     fg[PRELIGHT]      = @selected_fg_color
  215. }
  216.  
  217. style "frame_title" {
  218.  
  219.     fg[NORMAL]        = lighter (@fg_color)
  220. }
  221.  
  222. style "treeview" {
  223.     xthickness = 2
  224.     ythickness = 2
  225.  
  226.     engine "clearlooks" {
  227.         hint = "treeview"
  228.     }
  229. }
  230.  
  231. style "progressbar" {
  232.     xthickness = 1
  233.     ythickness = 1
  234.  
  235.     fg[PRELIGHT]      = @selected_fg_color
  236.  
  237.     engine "clearlooks" {
  238.         radius = 1.5
  239.  
  240.         hint = "progressbar"
  241.     }
  242. }
  243.  
  244. # This style is based on the default style, so that the colors from the button
  245. # style are overriden again.
  246. style "treeview_header" = "default" {
  247.     xthickness = 2
  248.     ythickness = 1
  249.  
  250.     engine "clearlooks" {
  251.         hint = "treeview-header"
  252.     }
  253. }
  254.  
  255. style "tooltips" {
  256.     xthickness = 4
  257.     ythickness = 4
  258.  
  259.     bg[NORMAL]        = @tooltip_bg_color
  260.     fg[NORMAL]        = @tooltip_fg_color
  261. }
  262.  
  263. style "nautilus_location" {
  264.  
  265.     bg[NORMAL]        = mix (0.60, shade (1.05, @bg_color), @selected_bg_color)
  266. }
  267.  
  268. # Wrokaroudn style for places where the text color is used instead of the fg color.
  269. style "text_is_fg_color_workaround" {
  270.  
  271.     text[NORMAL]      = @fg_color
  272.     text[PRELIGHT]    = @fg_color
  273.     text[SELECTED]    = @selected_fg_color
  274.     text[ACTIVE]      = @fg_color
  275.     text[INSENSITIVE] = darker (@bg_color)
  276. }
  277.  
  278. # Workaround style for menus where the text color is used instead of the fg color.
  279. style "menuitem_text_is_fg_color_workaround" {
  280.  
  281.     text[NORMAL]      = @fg_color
  282.     text[PRELIGHT]    = @selected_fg_color
  283.     text[SELECTED]    = @selected_fg_color
  284.     text[ACTIVE]      = @fg_color
  285.     text[INSENSITIVE] = darker (@bg_color)
  286. }
  287.  
  288. # Workaround style for places where the fg color is used instead of the text color.
  289. style "fg_is_text_color_workaround" {
  290.  
  291.     fg[NORMAL]        = @text_color
  292.     fg[PRELIGHT]      = @text_color
  293.     fg[SELECTED]      = @selected_fg_color
  294.     fg[ACTIVE]        = @selected_fg_color
  295.     fg[INSENSITIVE]   = darker (@bg_color)
  296. }
  297.  
  298. # Style to set the toolbar to use a flat style. This is because the "New" button in
  299. # Evolution is not drawn transparent. So if there is a gradient in the background it will
  300. # look really wrong.
  301. # See http://bugzilla.gnome.org/show_bug.cgi?id=446953.
  302. style "evo_new_button_workaround" {
  303.  
  304.     engine "clearlooks" {
  305.         toolbarstyle = 0
  306.     }
  307. }
  308.  
  309.  
  310. ###############################################################################
  311. # The following part of the gtkrc applies the different styles to the widgets.
  312. ###############################################################################
  313.  
  314. # The default style is applied to every widget
  315. class "GtkWidget" style "default"
  316.  
  317. class "GtkSeparator" style "wide"
  318. class "GtkFrame" style "wide"
  319. class "GtkCalendar" style "wide"
  320. class "GtkEntry" style "entry"
  321.  
  322. class "GtkSpinButton" style "spinbutton"
  323. class "GtkScale" style "scale"
  324. class "GtkVScale" style "vscale"
  325. class "GtkHScale" style "hscale"
  326. class "GtkScrollbar" style "scrollbar"
  327. class "GtkHScrollbar" style "hscrollbar"
  328. class "GtkVScrollbar" style "vscrollbar"
  329.  
  330. # General matching follows. The order is choosen so that the right styles override
  331. # each other. EG. progressbar needs to be more important than the menu match.
  332. widget_class "*<GtkNotebook>" style "notebook_bg"
  333. # This is not perfect, it could be done better.
  334. # (That is modify *every* widget in the notebook, and change those back that
  335. # we really don't want changed)
  336. widget_class "*<GtkNotebook>*<GtkEventBox>" style "notebook_bg"
  337. widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "notebook_bg"
  338. widget_class "*<GtkNotebook>*<GtkLayout>" style "notebook_bg"
  339. widget_class "*<GtkNotebook>*<GtkViewport>" style "notebook_bg"
  340. widget_class "*<GtkNotebook>*<GtkScrolledWindow>" style "notebook_bg"
  341.  
  342. widget_class "*<GtkButton>" style "button"
  343. widget_class "*<GtkNotebook>" style "notebook"
  344. widget_class "*<GtkStatusbar>*" style "statusbar"
  345.  
  346. widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
  347. widget_class "*<GtkCombo>*" style "comboboxentry"
  348.  
  349. widget_class "*<GtkMenuBar>*" style "menubar"
  350. widget_class "*<GtkMenu>*" style "menu"
  351. widget_class "*<GtkMenuItem>*" style "menu_item"
  352.  
  353. widget_class "*.<GtkFrame>.<GtkLabel>" style "frame_title"
  354. widget_class "*.<GtkTreeView>*" style "treeview"
  355.  
  356. widget_class "*<GtkProgress>" style "progressbar"
  357.  
  358. # Treeview headers (and similar stock GTK+ widgets)
  359. widget_class "*.<GtkTreeView>.<GtkButton>" style "treeview_header"
  360. widget_class "*.<GtkCTree>.<GtkButton>" style "treeview_header"
  361. widget_class "*.<GtkList>.<GtkButton>" style "treeview_header"
  362. widget_class "*.<GtkCList>.<GtkButton>" style "treeview_header"
  363.  
  364. # The window of the tooltip is called "gtk-tooltip"
  365. ##################################################################
  366. # FIXME:
  367. # This will not work if one embeds eg. a button into the tooltip.
  368. # As far as I can tell right now we will need to rework the theme
  369. # quite a bit to get this working correctly.
  370. # (It will involve setting different priorities, etc.)
  371. ##################################################################
  372. widget "gtk-tooltip*" style "tooltips"
  373.  
  374. ##########################################################################
  375. # Following are special cases and workarounds for issues in applications.
  376. ##########################################################################
  377.  
  378. # Workaround for the evolution ETable (bug #527532)
  379. widget_class "*.ETable.ECanvas" style "treeview_header"
  380. # Workaround for the evolution ETree
  381. widget_class "*.ETree.ECanvas" style "treeview_header"
  382.  
  383. # Special case the nautilus-extra-view-widget
  384. # ToDo: A more generic approach for all applications that have a widget like this.
  385. widget "*.nautilus-extra-view-widget" style : highest "nautilus_location"
  386.  
  387. # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
  388. # Note that this work around assumes that the combobox is _not_ in appears-as-list mode.
  389. widget_class "*.<GtkComboBox>.<GtkCellView>" style "text_is_fg_color_workaround"
  390. # This is the part of the workaround that fixes the menus
  391. widget "*.gtk-combobox-popup-menu.*" style "menuitem_text_is_fg_color_workaround"
  392.  
  393. # Work around the usage of GtkLabel inside GtkListItems to display text.
  394. # This breaks because the label is shown on a background that is based on the base color.
  395. widget_class "*<GtkListItem>*" style "fg_is_text_color_workaround"
  396. # GtkCList also uses the fg color to draw text on top of the base colors.
  397. widget_class "*<GtkCList>" style "fg_is_text_color_workaround"
  398. # Nautilus when renaming files, and maybe other places.
  399. widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround"
  400.  
  401. # See the documentation of the style.
  402. widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround"
  403.